<?php
include "AnimalInterface.php";

class Dog implements AnimalInterface
{

    public function eat()
    {
        echo "Dog is eating";
    }
}

$dog = new Dog();

$dog->eat();